How to quickly create beautification effects in batches in the SuperMap product system based on architectural vector surface data, and load them on the 3D client?
This document introduces data processing, material associated files, and client loading. The products involved include: SuperMap iDesktop, client
1. Raw data preparation
The original data is building vector surface data. The attribute table needs to have attributes related to the building height or the number of floors, so that it can be stretched into a model based on this attribute later. In the example, the attribute value in Height is used.
Figure 1
2. Material preparation
We provide 11 types of material materials for setting the appearance of the white mold. Users in need can contact us, and users can also use their own material materials.
Figure 2
3. Vector surface data attribute processing
Open the property panel of the surface dataset, and add two text-type properties of "side material" and "top material" in its properties;
Figure 3
We need to set the material type we want to be given to each model object in the attribute table:
Figure 4
Figure 5
The final result is as follows:
Figure 6
4. Generate S3M cache
Select the "3D data-generate cache-generate model cache by surface extrusion" function, and in the pop-up panel, select the architectural vector surface dataset.
Parameter setting: Specify the path to generate the cache; the stretch height is set to "Height"; the tile side length is set according to the data range, here is set to "6000" because it is the data of the entire city;
Material settings: First, you need to check the material mode, select "true size" for the texture mode; select "top material" and "side material" for the texture field respectively; if you use the UE material material provided by us, the UV settings here "30" is more appropriate;
After the setting is complete, click Generate to get the S3M cache data.
Figure 7
Figure 8
1. Manually modify the following files
In "Materials", the association relationship of materials is given by default, and the material name after "AssociateMaterial" is the material in UE; the material name after "OriginalMaterial" is the material name of S3M cache data, which is used in data processing In the third step, set the property values of the top material and side material.
Note: If you are using the material material provided by us, you do not need to modify the material name after "AssociateMaterial".
Figure 9
Figure 10
Figure 10-1
1. Release 3D services
In the previous steps, we generated the cache data of the white mold, put the material file, and then published the 3D service of the cache of the white mold, and loaded it on the client. The specific steps are as follows:
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
2. Client browsing data
After publishing the 3D service, you can browse the data through the client in this step.
Acquisition: Enter the service list page (http://localhost:8090/iserver/services), find and click the 3D service published in the previous step;
Enter the "root directory" page, click "realspace"; copy the entire address. As follows: "http://localhost:8090/iserver/services/3D-BaiMoMeiHua/rest/realspace"
Figure 17
Change to: var promise = scene.open('http://localhost:8090/iserver/services/3D-BaiMoMeiHua/rest/realspace');
Figure 18
Figure 19
Daytime effect
Figure 20
If you want to adjust the lightness and darkness of the material, you can modify the values of the metallicFactor and roughnessFactor parameters. When the roughnessFactor value is equal to 0, there will be no PBR effect, so it needs to be set greater than 0. You can also add the "intensityScale" parameter here to adjust.
Figure 21
Evening scene effect
Figure 22
Night scene effect
Figure 23
Note:
1. Please use the latest SuperMap iDesktop and client versions on SuperMap official website. Software download link: